home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 164 - Disc 2 / MF_UK_164_2.iso / DiscContents / Games / Football Manager 2006 / Install Mac FM2006 Gold Demo.dmg / FM2006 Gold Demo / data / panels / breadcrumbs.xml < prev    next >
Encoding:
Extensible Markup Language  |  2005-09-25  |  1.5 KB  |  38 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE panel SYSTEM "http://www.sigames.com/dtds/sios/panel.dtd">
  3.  
  4. <!-- an example panel -->
  5. <panel>
  6.     <!-- the panel has very simple content, just a label and a button arrange vertically
  7.          one below the other -->
  8.          
  9.     <!-- you specify the layout of the items with layout attachments -->
  10.     <!-- this is the trickiest bit of the whole process -->
  11.     
  12.     <!-- first, we tell this container to lay out its content from left to right -->
  13.     <layout class="arrange_horizontal_attachment" alignment="left"/>
  14.     
  15.     <!-- then we tell it to make sure that all of its content sticks to the -->
  16.     <!-- top and bottom of the panel -->
  17.     <layout class="centre_in_parent_attachment" alignment="vertical" layout_children="true" priority="1"/>
  18.     
  19.     <!-- we want the panel to be as wide as all of it's content added together -->
  20.     <layout class="fit_children_attachment" alignment="horizontal,fill"/>
  21.     
  22.     <!-- we want the panel to be as high as it's highest content -->
  23.     <layout class="fit_children_attachment" alignment="vertical" offset="0"/>
  24.     
  25.     
  26.     <!-- this is where we actually create the widgets which form the content of the panel -->
  27.     
  28.     <!-- first, a button -->
  29.     <!-- we will leave its text blank, because we're going to set it from code -->
  30.     <widget class="text_button" id="bcil" auto_size="horizontal" spec="text,small" style="embossed" />
  31.     
  32.     <!-- then a popup -->
  33.     <widget class="breadcrumbs_popup" id="bcri"/>
  34.     
  35.     <!-- then a divider -->
  36.     <widget class="picture" id="bcse" auto_size="all" file="breadcrumbs/seperator"/>
  37.     
  38. </panel>